//
//  PKWebViewController.swift
//  Panku
//
//  Created by mac on 2017/4/13.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit

class PKWebViewController: PKBaseViewController {
    
    //MARK:proeprties
    //UI
    lazy var webView = PKBaseWebView()

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    override func setupRootView() {
        
    }
    
    override func setupSubViews() {
        view.addSubview(webView)
    }
    
    override func setupSubViewsConstraints() {
        webView.snp.makeConstraints { (make) in
            make.edges.equalTo(view)
        }
    }
    
    override func setupNavigationBar() {
        
    }
    
    override func bindViewModel() {
        
    }
    
    func load(Url:String) -> Void {
        let url = URL(string: Url)
        let request = URLRequest(url: url!)
        webView.loadRequest(request)
    }

    
    

}
